﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace DataAccess
{
    public class DefaultDataAccess : FSBase_DataAccess
    {
        public DataTable Login(string strUserName,string strPassword)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.AppendLine("   select * from sUser where vcUserID = '" + strUserName + "' and vcPassword = '" + strPassword + "'  ");
            return Search(strSql.ToString());
        }

        #region 获取用户信息
        public DataTable getUserInfo(string strUserID)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.AppendLine("     select * from sUser where vcUserID = '" + strUserID + "'    ");
            return Search(strSql.ToString());
        }
        #endregion
    }
}
